package com.rp.article.task;

import com.rp.article.serivce.ArticleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@Configuration
//@EnableScheduling
@Slf4j
public class TaskPublishArticles {

//    @Scheduled(cron = "0/3 * * * * ?")
//    private void publisArticles(){
//       log.info("===================> {}","定时任务");
//    }


    @Autowired
    private ArticleService articleService;

//    @Scheduled(cron = "0/3 * * * * ?")
//    private void publisArticles(){
//        log.info("===================> {}","定时任务");
//        articleService.updateAppointToPublish();
//    }
}
